package com.jfinal.ext.plugin.activiti;

import org.activiti.engine.impl.cfg.IdGenerator;

import java.util.UUID;


/**
 *
 */
public class UuidGenerator implements IdGenerator {

	@Override
	public String getNextId() {
        UUID uuid = UUID.randomUUID();
        String str = uuid.toString();
        str = str.replaceAll("-", "");
        return str;
	}
}
